{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set menu = 'admin_integral' %}

{% block main %}
{{ web_macro.flash_messages() }}



 <ul class="nav nav-tabs">
    <li  class="{% if side_nav == 'integral' %}active{% endif %}" >
      <a href="{{ url('admin_integral') }}"  >等级升级管理
      </a>
    </li>
    <li class="{% if side_nav == 'setintegral' %}active{% endif %}">
      <a href="{{ url('admin_setintegral') }}">积分设置
      </a>
    </li>
  </ul>

 <form class="form-horizontal" method="post" >
    
     {% for levelarr in levelarr %}
    <div class="row form-group">
    <div class="col-md-3 control-label">
      <label for="truename">会员等级{{ levelarr.levelnum }}</label>
        <label for="truename" style="color:#{{ levelarr.color}};">【{{ levelarr.levelname}}】</label>
        <label for="truename">高于</label>
    </div>
    <div class="col-md-2 controls">
      <input type="text" id="truename" name="integral[{{ levelarr.id }}]" class="form-control" value="{{ levelarr.integral }}" > 
    </div>  
      <div class="col-md-2 control-label">
        <label for="truename">积分 晋级</label>  
    </div>
  </div>
     {% endfor %}
 <div class="form-group text-right">
            <button class="btn btn-primary" id="order-create-btn" type="submit" >设置</button>
        </div>

  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>
<div class="row form-group">
    <div class="col-md-4 control-label" >
      <label for="truename">活动送积分请到----><a href="course/normal/index">课程管理界面设置</a></label>
    </div>
    
  </div>
{% endblock %}
